﻿package 
{
	import fl.controls.listClasses.CellRenderer;
	import fl.controls.listClasses.ICellRenderer;

	import flash.text.TextFormat;
	import flash.display.Sprite;

	public class LegendCellRenderer extends CellRenderer implements ICellRenderer
	{

		public function LegendCellRenderer():void
		{
			super();
		}

		public static function getStyleDefinition():Object
		{
			return CellRenderer.getStyleDefinition();
		}

		override protected function drawBackground():void
		{
			var textformat:TextFormat = new TextFormat();
			textformat.font = 'Arial';
			textformat.color = data.data;
			textformat.align = 'left';
			textformat.size = 11;
			setStyle('textFormat', textformat);

			super.drawBackground();
		}
	}
}